const express = require('express');
const Router = express.Router(); // ==app

//商品类型路由
const goodsTypeRouter = require("./modules/goodstype/goodstype");

//商品路由
const goodsRouter = require("./modules/goods/goods");

//用户路由
const userRouter = require("./modules/user/user");

//购物车路由
const shoppingcartRouter = require("./modules/shoppingcart/shoppingcart");
//订单路由
const orderRouter = require("./modules/order/order");
//管理员路由
const adminRouter = require("./modules/admin/admin");

//使用路由
Router.use("/dev-api/goodstype",goodsTypeRouter);
Router.use("/dev-api/user",userRouter);
Router.use("/dev-api/goods",goodsRouter);
Router.use("/dev-api/shoppingcart",shoppingcartRouter);
Router.use("/dev-api/order",orderRouter);
Router.use("/dev-api/admin",adminRouter);


module.exports = Router;